package ar.edu.utn.frba.dds.opendesigners.almacenamiento;

import java.util.ArrayList;
import java.util.List;

public class Historial<T> {
	
	private List<T> historial; 
	
	
	public Historial(){
		this.historial = new ArrayList<T>();
	}
	
	public void recordLog(T campoLog) {
		//Agrega un campo si es distinto de NULL
		if( campoLog != null){
			historial.add(campoLog);
		}
				
	}

	public List<T> getHistorial() {
		return this.historial;
	}
}